package com.zimin.cloud.web;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author zimin
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.zimin"})
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.zimin.cloud.*.api"})
public class WebApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder().web(WebApplicationType.REACTIVE).sources(WebApplication.class).run(args);
    }

}
